xen/rwlock: add check_lock() handling to rwlocks
authorJuergen Gross <jgross@suse.com>
Fri, 6 Nov 2020 09:48:07 +0000 (10:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Nov 2020 09:48:07 +0000 (10:48 +0100)
commite19bcb626f50a652fb1854a8b2f2c9c371687a11
tree980f9e4ef0c24cb4ca748c2cd8401a4bbfce2b85
parentc3453a23f7905d24f2404787543e26ec7d02301c
xen/rwlock: add check_lock() handling to rwlocks

Checking whether a lock is consistently used regarding interrupts on
or off is beneficial for rwlocks, too.

So add check_lock() calls to rwlock functions. For this purpose make
check_lock() globally accessible.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/spinlock.c
xen/include/xen/rwlock.h
xen/include/xen/spinlock.h